package com.studyjava.objectstudy;
//派生类
public class teacher extends 人{
    private String name = "teacher";
    public void getname(String name){
        System.out.println(name);
        System.out.println(this.name);
        System.out.println(super.name);
    }

    @Override
    public void say() {
        System.out.println("teacer说话");
    }
    public void eat(){
        System.out.println("吃");
    }
}
